//
//  ZCollectionReusableView.m
//  PTravel
//
//  Created by dllo on 15/11/19.
//  Copyright © 2015年 李涵. All rights reserved.
//

#import "ZCollectionReusableView.h"

@implementation ZCollectionReusableView
- (void)dealloc
{
    [super dealloc];
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubViews];
    }
    return self;
}
- (void)createSubViews
{
    self.label = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, 200, 30)];
    [self addSubview:self.label];
    [_label release];
}

- (void)setDVC:(DetailViewController *)dVC
{
    if (_dVC != dVC) {
        [_dVC release];
        _dVC = [dVC retain];
    }
    
    self.label.text = [NSString stringWithFormat:@"%@城市", [dVC.smallDic objectForKey:@"cnname"]];
}
@end
